package org.handover.repository;

import org.handover.domain.UserGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserGroupRepository extends JpaRepository<UserGroup, Long>{
    Boolean existsByNo(String no);
    Boolean existsByIdNotAndNo(Long id, String no);

    Boolean existsByName(String name);
    Boolean existsByIdNotAndName(Long id, String name);
}
